﻿namespace Singleton
{
    internal class HungrySingleton
    {
        private static HungrySingleton instance = new();
        private HungrySingleton()
        {
            Console.WriteLine("生成了一个实例");
        }

        public static HungrySingleton GetInstance()
        {
            return instance;
        }
    }
}
